package br.com.atid.view 
{
	import flash.display.Sprite;
	import flash.printing.PrintJob; 
	
	public class PrintJobExample_Simple extends Sprite
	{
		var myPrintJob:PrintJob = new PrintJob(); 
		var mySprite:Sprite = new Sprite();
		mySprite.graphics.beginFill(0x336699);
		mySprite.graphics.drawCircle(100, 100, 50);
		
		public function PrintJobExample_Simple() 
		{ 
			if (myPrintJob.start()) {
				try {
					myPrintJob.addPage(mySprite);
				}
				catch(e:Error) {
					// handle error 
				}
				myPrintJob.send();
			} 
	}
}